home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 122
/
MOBICLIC 122.ISO
/
mac
/
DATA
/
ENG122
/
ENG122_00
/
ENG122_00.swf
/
scripts
/
frame_139
/
DoAction.as
Wrap
Text File
|
2010-02-16
|
5KB
|
181 lines
function initDialog()
{
etatPlay = 1;
DIALOG.BT_PLAY_PAUSE.gotoAndStop("E2");
DIALOG.BT_FERMER.onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_FERMER"});
gereTextes.afficheIB({codeIB:"IB_CLOS",mc:this});
};
DIALOG.BT_FERMER.onRollOut = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_FERMER"});
gereTextes.masqueIB();
};
DIALOG.BT_FERMER.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:"B_FERMER"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
joueBruitage({nomSon:"B_01_INTRO"});
_root.DIALOG.gotoAndPlay("FIN_FADE");
};
DIALOG.BT_BEGIN.onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_BEGIN"});
gereTextes.afficheIB({codeIB:"IB_BEGIN",mc:this});
};
DIALOG.BT_BEGIN.onRollOut = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_BEGIN"});
gereTextes.masqueIB();
};
DIALOG.BT_BEGIN.onPress = function()
{
_root.gNextLabel = undefined;
gereCursor(1);
stopBruitage({nomSon:"B_BEGIN"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
this._parent.BT_PLAY_PAUSE.gotoAndStop("E2");
_root.etatPlay = 1;
this._parent.gotoAndPlay("ANIM_02");
};
DIALOG.BT_PLAY_PAUSE.onRollOver = function()
{
gereCursor(2);
this.BT.gotoAndStop("E2");
switch(_root.etatPlay)
{
case 0:
joueBruitage({nomSon:"B_PLAY"});
gereTextes.afficheIB({codeIB:"IB_PLAY",mc:this});
break;
case 1:
joueBruitage({nomSon:"B_PAUSE"});
gereTextes.afficheIB({codeIB:"IB_PAUSE",mc:this});
}
};
DIALOG.BT_PLAY_PAUSE.onRollOut = function()
{
gereCursor(1);
this.BT.gotoAndStop("E1");
stopBruitage({nomSon:"B_PLAY"});
stopBruitage({nomSon:"B_PAUSE"});
gereTextes.masqueIB();
};
DIALOG.BT_PLAY_PAUSE.onPress = function()
{
_root.gNextLabel = undefined;
gereCursor(1);
stopBruitage({nomSon:"B_PLAY"});
stopBruitage({nomSon:"B_PAUSE"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
switch(_root.etatPlay)
{
case 1:
trace("_root.dialogEcran " + _root.dialogEcran);
this.gotoAndStop("E1");
etatPlay = 0;
this._parent.gotoAndStop(_root.dialogEcran);
break;
case 0:
this.gotoAndStop("E2");
etatPlay = 1;
this._parent.play();
}
};
DIALOG.BT_RWD.onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_RWD"});
gereTextes.afficheIB({codeIB:"IB_RWD",mc:this});
};
DIALOG.BT_RWD.onRollOut = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_RWD"});
gereTextes.masqueIB();
};
DIALOG.BT_RWD.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:"B_RWD"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
var _loc2_ = Number(_root.dialogEcran.split("_")[1]);
if(_loc2_ > 2)
{
if(etatPlay == 1)
{
_root.DIALOG.gotoAndPlay("ANIM_" + gimme2digits(_loc2_ - 1));
}
else
{
_root.DIALOG.gotoAndStop("ANIM_" + gimme2digits(_loc2_ - 1));
}
}
};
DIALOG.BT_FWD.onRollOver = function()
{
gereCursor(2);
this.gotoAndStop("E2");
joueBruitage({nomSon:"B_FWD"});
gereTextes.afficheIB({codeIB:"IB_FWD",mc:this});
};
DIALOG.BT_FWD.onRollOut = function()
{
gereCursor(1);
this.gotoAndStop("E1");
stopBruitage({nomSon:"B_FWD"});
gereTextes.masqueIB();
};
DIALOG.BT_FWD.onPress = function()
{
gereCursor(1);
stopBruitage({nomSon:"B_FWD"});
if(gCommentOn !== undefined)
{
stopSon();
}
gereTextes.masqueIB();
var _loc2_ = Number(_root.dialogEcran.split("_")[1]);
if(_loc2_ < 22)
{
if(etatPlay == 1)
{
_root.DIALOG.gotoAndPlay("ANIM_" + gimme2digits(_loc2_ + 1));
}
else
{
_root.DIALOG.gotoAndStop("ANIM_" + gimme2digits(_loc2_ + 1));
}
}
};
}
stop();